package com.neusoft.his.sb.entity;

import java.util.Date;
import java.util.List;
// 多的一方 ， 一的一方
public class Emp {
	private Integer empno;
	private String ename;
	private  String  job;
	private Integer mgr;
	private Date hiredate;
	private  Float  sal;
	private Float comm;
	private  Integer deptno;
	// 一的一方
	private Emp leader;
	
//	多的一方
	private  List<Emp> les;
	
	public  Emp() {}
	
	public Integer getEmpno() {
		return empno;
	}
	public void setEmpno(Integer empno) {
		this.empno = empno;
	}
	public String getEname() {
		return ename;
	}
	public void setEname(String ename) {
		this.ename = ename;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	public Integer getMgr() {
		return mgr;
	}
	public void setMgr(Integer mgr) {
		this.mgr = mgr;
	}
	public Date getHiredate() {
		return hiredate;
	}
	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}
	public Float getSal() {
		return sal;
	}
	public void setSal(Float sal) {
		this.sal = sal;
	}
	public Float getComm() {
		return comm;
	}
	public void setComm(Float comm) {
		this.comm = comm;
	}
	public Integer getDeptno() {
		return deptno;
	}
	public void setDeptno(Integer deptno) {
		this.deptno = deptno;
	}
	
	

	public Emp getLeader() {
		return leader;
	}

	public void setLeader(Emp leader) {
		this.leader = leader;
	}
	
	
	
	

	public List<Emp> getLes() {
		return les;
	}

	public void setLes(List<Emp> les) {
		this.les = les;
	}

	@Override
	public String toString() {
		return "Emp [empno=" + empno + ", ename=" + ename + ", job=" + job + ", mgr=" + mgr + ", hiredate=" + hiredate
				+ ", sal=" + sal + ", comm=" + comm + ", deptno=" + deptno + ", leader=" + leader + ", les=" + les
				+ "]";
	}

	 
	
	
	
}
